#ifndef ACCOUNT_H
#define ACCOUNT_H
#include "AccountImpl.h"
#include "BankObserver.h"



#include <iostream>

class Account: public BankObserver
{
	
public:
	int getPercentOnDeposit();
	struct tm getOpenDate();
	int getSavingPeriod();

	void setPercentOnDeposit(int);
	void setOpenDate(struct tm);
	void setSavingPeriod(int);
	void update(int eventType);
	int getType();
	Account(AccountImpl* myAccount){account = myAccount;};
	~Account(){delete account;};

protected:
	AccountImpl*	account;
};

#endif